Conversation
|
@PrinceAsiedu aiopg seems less active library compared to the psycopg library. I believe we should select psycopg library for connecting with postgres DB. @dadiorchen what do you think? |
|
Psycopg is a synchronous Postgresql adapter while AIOPG is the opposite of that. Both are suited for different use cases. While aiopg is asynchronous, Psycopg isn't. Aiopg is also built on top of Psycopg I believe our use case requires us to use a library that leans toward asynchronous operations. I stand to be corrected though |
Psycopg allows async opration. Check out this documentation. https://www.psycopg.org/psycopg3/docs/advanced/async.html I have actually built the functions and tested them. I will add a PR here and you can take a look. |
Requesting change for client. Pub-sub functions updated and documentation added